package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 采集规则对象 hg_collect_rule
 *
 * @author chenming
 * @date 2024-10-16
 */
public class CollectRule
{
    private static final long serialVersionUID = 1L;

    /** 采集id */
    @TableId("collect_id")
    private Long collectId;

    /** 采集名称 */
    @Excel(name = "采集名称")
    private String collectName;

    /** 采集脚本 */
    @Excel(name = "采集脚本")
    private String collectCmd;

    /** 模板id */
    @Excel(name = "模板id")
    private Long templateId;

    public void setCollectId(Long collectId)
    {
        this.collectId = collectId;
    }

    public Long getCollectId()
    {
        return collectId;
    }
    public void setCollectName(String collectName)
    {
        this.collectName = collectName;
    }

    public String getCollectName()
    {
        return collectName;
    }
    public void setCollectCmd(String collectCmd)
    {
        this.collectCmd = collectCmd;
    }

    public String getCollectCmd()
    {
        return collectCmd;
    }
    public void setTemplateId(Long templateId)
    {
        this.templateId = templateId;
    }

    public Long getTemplateId()
    {
        return templateId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("collectId", getCollectId())
            .append("collectName", getCollectName())
            .append("collectCmd", getCollectCmd())
            .append("templateId", getTemplateId())
            .toString();
    }
}
